package cn.iocoder.yudao.module.bpm.api.amis;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.bpm.api.amis.dto.AmisListColumConfigDto;
import cn.iocoder.yudao.module.bpm.service.amis.AmisFormConfigAnalysis;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@RestController
@Validated
public class AmisFormConfigService implements AmisFormConfigApi {

    @Resource
    private AmisFormConfigAnalysis amisFormConfigAnalysis;

    @Override
    public CommonResult<List<AmisListColumConfigDto>> getAmisFormConfig(String formKey, String type) {
        return success(amisFormConfigAnalysis.analysisColumnList(formKey,type));
    }

}
